<template>
        <el-table  stripe   v-bind="$attrs" style="height: 100%;">
            <el-table-column v-for="item in columnOption" :key="item.label + 'table'" v-bind="item">
                <template v-slot="{row}">
                <slot :name="item.prop" v-if="!!slot[item.prop]" :row="row"  ></slot>
            </template>
            </el-table-column>
            <template #empty>
                <section class=" min-h-[500px] grid place-items-center">
                    <span>
                        暂无数据
                    </span>

                </section>
              
            </template>
        </el-table>
</template>

<script setup>

defineProps({
    columnOption :{
        type:Array,
        default:()=>[]
    }
})
const slot = useSlots()

</script>

<style lang="scss" scoped>

</style>